using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;
using Cpsc481Phone.Gui.Call;
using Cpsc481Phone.Gui.GlobalCompents;

namespace Cpsc481Phone.Gui.Menus
{
    public partial class CallHistory : UserControl
    {
        public CallHistory()
        {
            InitializeComponent();
            listBox1.SelectedIndex = 0;
        }

        private void contextRightLabel_Click(object sender, EventArgs e)
        {

        }

        private void textBox1_TextChanged(object sender, EventArgs e)
        {
     
        }

        private void listBox1_SelectedIndexChanged(object sender, EventArgs e)
        {
           
        }

        private void contextLeftLabel_Click(object sender, EventArgs e)
        {

        }
        public int getListBox_index()
        {
            return listBox1.SelectedIndex;
        }
        public void scroll_down()
        {
            listBox1.SelectedIndex = listBox1.SelectedIndex + 1;
        }
        public void scroll_up()
        {
            if (listBox1.SelectedIndex != 0)
            {
                listBox1.SelectedIndex = listBox1.SelectedIndex - 1;
            }
        }
    }
}
